package com.cool.modules.finance.entity.family;

import com.cool.core.base.BaseEntity;
import com.mybatisflex.annotation.Table;
import com.tangzc.mybatisflex.autotable.annotation.ColumnDefine;
import com.tangzc.mybatisflex.autotable.annotation.UniIndex;
import lombok.Data;
import lombok.EqualsAndHashCode;

@EqualsAndHashCode(callSuper = true)
@Data
@Table(value = "finance_family",comment = "家庭分组表")
public class FinanceFamilyEntity extends BaseEntity<FinanceFamilyEntity> {

    @ColumnDefine(comment = "家庭名称",notNull = true,type = "varchar(255)")
    private String name;

    @ColumnDefine(comment = "家庭代码",notNull = true,type = "varchar(255)")
    @UniIndex
    private String code;

}
